/*
 * Licensed Materials - Property of tenxcloud.com
 * (C) Copyright 2018 TenxCloud. All Rights Reserved.
 * 2018-11-06  @author lizhen
 */

package contract

type ACL interface {
	FilterType() FilterType
	PolicyType() PolicyType
	Filter(name string) (match bool, err error)
}

type FilterType string

type PolicyType string

const (
	FixedFilter FilterType = "fixed"
	RegexFilter FilterType = "regex"

	Whitelist PolicyType = "white"
	Blacklist PolicyType = "black"
)
